home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / rayshade / config.h.SH < prev    next >
Text File  |  1994-08-01  |  6KB  |  205 lines

  1. case $CONFIG in
  2. '')
  3.     if test ! -f config.sh; then
  4.     ln ../config.sh . || \
  5.     ln ../../config.sh . || \
  6.     ln ../../../config.sh . || \
  7.     (echo "Can't find config.sh."; exit 1)
  8.     echo "Using config.sh from above..."
  9.     fi
  10.     . ./config.sh
  11.     ;;
  12. esac
  13. echo "Extracting config.h (with variable substitutions)"
  14. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
  15. /* config.h
  16.  * This file was produced by running the config.h.SH script, which
  17.  * gets its values from config.sh, which is generally produced by
  18.  * running Configure.
  19.  *
  20.  * Feel free to modify any of this as the need arises.  Note, however,
  21.  * that running config.h.SH again will wipe out any changes you've made.
  22.  * For a more permanent change edit config.sh and rerun config.h.SH.
  23.  */
  24.  
  25.  
  26. /* EUNICE:
  27.  *    This symbol, if defined, indicates that the program is being compiled
  28.  *    under the EUNICE package under VMS.  The program will need to handle
  29.  *    things like files that don't go away the first time you unlink them,
  30.  *    due to version numbering.  It will also need to compensate for lack
  31.  *    of a respectable link() command.
  32.  */
  33. /* VMS:
  34.  *    This symbol, if defined, indicates that the program is running under
  35.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  36.  */
  37. /* XENIX:
  38.  *    This symbol, if defined, indicates thet the program is running under
  39.  *    Xenix (at least 3.0 ?).
  40.  */
  41. /* BSD:
  42.  *    This symbol, if defined, indicates that the program is running under
  43.  *    a BSD system.
  44.  */
  45. #$d_eunice EUNICE        /**/
  46. #$d_eunice VMS        /**/
  47. #$d_xenix XENIX        /**/
  48. #$d_bsd BSD        /**/
  49.  
  50. /* CPPSTDIN:
  51.  *    This symbol contains the first part of the string which will invoke
  52.  *    the C preprocessor on the standard input and produce to standard
  53.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  54.  */
  55. /* CPPMINUS:
  56.  *    This symbol contains the second part of the string which will invoke
  57.  *    the C preprocessor on the standard input and produce to standard
  58.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  59.  *    to specify standard input, otherwise the value is "".
  60.  */
  61. #define CPPSTDIN "$cppstdin"
  62. #define CPPMINUS "$cppminus"
  63.  
  64. /* bzero:
  65.  *    This symbol is maped to memset if the  bzero() routine is not
  66.  *    available to set memory to 0.
  67.  */
  68. #$d_bzero    bzero(s,l)    memset((s),0,(l))    ;    /* mapped to memset */
  69.  
  70. /* CBRT:
  71.  *    This symbol, if defined, indicates that the cbrt() (cube root)
  72.  *    function is available.
  73.  */
  74. #$d_cbrt    CBRT        /**/
  75.  
  76. /* index:
  77.  *    This preprocessor symbol is defined, along with rindex, if the system
  78.  *    uses the strchr and strrchr routines instead.
  79.  */
  80. /* rindex:
  81.  *    This preprocessor symbol is defined, along with index, if the system
  82.  *    uses the strchr and strrchr routines instead.
  83.  */
  84. #$d_index    index strchr    /* cultural */
  85. #$d_index    rindex strrchr    /*  differences? */
  86.  
  87. /* MEMSET:
  88.  *    This symbol, if defined, indicates that the memset routine is available
  89.  *    to set blocks of memory. You should always use bzero() instead of
  90.  *    memset() because bzero is remaped to memset if necessary. This means
  91.  *    that a memset() routine must be provided in case MEMSET is not defined
  92.  *    and no bzero() is found.
  93.  */
  94. #$d_memset    MEMSET        /**/
  95.  
  96. /* POPEN:
  97.  *    This symbol, if defined, indicates that the popen routine is
  98.  *    available to open a pipe from a process.
  99.  */
  100. #$d_popen POPEN        /**/
  101.  
  102. /* RUSAGE:
  103.  *    This symbol, if defined, indicates that the getrusage() routine exists.
  104.  *    Inclusion of <sys/resource.h> and <sys/time.h> may be necessary.
  105.  */
  106. #$d_rusage    RUSAGE        /**/
  107.  
  108. /* TIMES:
  109.  *    This symbol, if defined, indicates that the times() routine exists.
  110.  *    Note that this became obsolete on some systems (SUNOS), which now
  111.  * use getrusage().
  112.  */
  113. /* CLOCKTYPE:
  114.  *    This symbol holds the type returned by times(). It can be long,
  115.  *    or clock_t on BSD sites (in which case <sys/types.h> should be
  116.  *    included). Moreover, the Clock_t symbol is defined in common.h
  117.  *    and should be used for easy clean reference.
  118.  */
  119. #$d_times TIMES        /**/
  120. #define CLOCKTYPE $clocktype        /**/
  121.  
  122. /* I_STRING:
  123.  *    This symbol, if defined, indicates to the C program that it should
  124.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  125.  */
  126. #$i_string I_STRING        /**/
  127.  
  128. /* I_SYSRESOURCE:
  129.  *    This symbol, if defined, indicates to the C program that it should
  130.  *    include <sys/resource.h>.
  131.  */
  132. #$i_sysresrc    I_SYSRESOURCE        /**/
  133.  
  134. /* I_SYSTYPES:
  135.  *    This symbol, if defined, indicates to the C program that it should
  136.  *    include <sys/types.h>.
  137.  */
  138. #$i_systypes    I_SYSTYPES        /**/
  139.  
  140. /* I_TIME:
  141.  *    This symbol, if defined, indicates to the C program that it should
  142.  *    include <time.h>.
  143.  */
  144. /* I_SYSTIME:
  145.  *    This symbol, if defined, indicates to the C program that it should
  146.  *    include <sys/time.h>.
  147.  */
  148. /* I_SYSTIMEKERNEL:
  149.  *    This symbol, if defined, indicates to the C program that it should
  150.  *    include <sys/time.h> with KERNEL defined.
  151.  */
  152. #$i_time I_TIME        /**/
  153. #$i_systime I_SYSTIME        /**/
  154. #$i_systimek I_SYSTIMEKERNEL        /**/
  155.  
  156. /* nrand:
  157.  *    This macro is to be used to generate uniformly distributed
  158.  *    random numbers over the range [0., 1.].
  159.  */
  160. /* seednrand:
  161.  *    This symbol defines the macro to be used in seeding the
  162.  *    random number generator (see nrand).
  163.  */
  164. #define nrand()        $mrand        /**/
  165. #define seednrand(x)    $seedfunc(x)    /**/
  166.  
  167. /* VOIDFLAGS:
  168.  *    This symbol indicates how much support of the void type is given by this
  169.  *    compiler.  What various bits mean:
  170.  *
  171.  *        1 = supports declaration of void
  172.  *        2 = supports arrays of pointers to functions returning void
  173.  *        4 = supports comparisons between pointers to void functions and
  174.  *            addresses of void functions
  175.  *        8 = suports declaration of generic void pointers
  176.  *
  177.  *    The package designer should define VOIDUSED to indicate the requirements
  178.  *    of the package.  This can be done either by #defining VOIDUSED before
  179.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  180.  *    latter approach is taken, only those flags will be tested.  If the
  181.  *    level of void support necessary is not present, defines void to int.
  182.  */
  183. #ifndef VOIDUSED
  184. #define VOIDUSED $defvoidused
  185. #endif
  186. #define VOIDFLAGS $voidflags
  187. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  188. #$define void int        /* is void to be avoided? */
  189. #$define M_VOID        /* Xenix strikes again */
  190. #endif
  191.  
  192. /* URT:
  193.  *     This symbol, if defined, indicates that the Utah Raster
  194.  *    Toolkit is being used.
  195.  */
  196. #$d_urt       URT          /**/
  197.  
  198. /* I_VARARGS:
  199.  *    This symbol, if defined, indicates to the C program that it should
  200.  *    include <stdlib.h>.
  201.  */
  202. #$i_stdlib I_STDLIB        /**/
  203.  
  204. !GROK!THIS!
  205.